package com.k2.common.utils;

import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;

public class NewData {

    //当前时间
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
    String dateString = df.format(new Date());
    ParsePosition pos = new ParsePosition(8);
    Date data;
    {
        try {
            data = df.parse(dateString);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    public Date getNewData(){
        return data;
    }
}
